/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 26727
 * Date: 2024-04-10
 * Time: 15:26
 */
public class Animal {
    String name;
    String gender;
    int age;

    public Animal(String name,String gender, int age) {
        this.name = name;
        this.gender = gender;
        this.age = age;
    }

    public void eat() {
        System.out.println(name+"吃饭");
    }
}
